<template>
	<view>
		<u-button
			size="mini"
			type="default"
			open-type="getPhoneNumber"
			@getphonenumber="getPhoneNumber"
		>
			{{$t('locales.getMobilePhoneNumber')}}
		</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
			getPhoneNumber(e) {
				if (!e.target.iv) {
					uni.showToast({
						icon: 'none',
						title: this.$t('locales.failedToObtainMobilePhoneNumber')
					})
					return
				}
				console.log(e)
			},
		}
	}
</script>

<style lang="scss">

</style>
